// storePackage/pages/houseBindDetail/houseBindDetail.js
import { bindingHouseList } from "../../../service/onetoone_service"
Page({

  /**
   * 页面的初始数据
   */
  data: {
    successImg: "https://jyhky.ylyc.top/person%2Fbindsuccess_icon.png",
    failImg: "https://jyhky.ylyc.top/person%2Fbindfail_icon.png",
    progressImg: "https://jyhky.ylyc.top/person%2Fbinding_icon.png",
    dataList: [

    ],

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {
    this.bindingHouseList();
  },
  bindingHouseList() {
    wx.showLoading();
    bindingHouseList().then(res => {
      console.log("JJLog:房源列表===:" + JSON.stringify(res));
      wx.hideLoading();
      if (res.code == 200) {
        this.setData({
          dataList: res.data
        })
      }
    }).catch(err => {
      wx.hideLoading();
      wx.showToast({
        title: err || "查询失败",
        icon: "none"
      })
      console.error("JJLog:bindingHouseList", err);
    })
  },
  pushToBindHouse() {
    wx.navigateTo({
      url: '/shopMallPackage/pages/bindIngHouse/bindIngHouse',
    })
  },






})